
import java.util.Scanner;

public class UniqueDup {
	
	public static void main(String args[])
	{
		System.out.println("enter 5 integers");
		Scanner scan=new Scanner(System.in);
		int i,x,j,ctr=0;
		boolean found=false;
		
		int[] arr=new int[5];
		
		for (i=0; i<arr.length; i++)
		{	
			 arr[i]= scan.nextInt();
		}
		
		
		for(i=0; i<arr.length; i++)
		{
			ctr = 1;
			found = false;
			for (j=0; j<arr.length;j++)
			{	
				if(i!=j){
					if (arr[i]==arr[j])
					{
						if(j<i) {
							ctr=0;
							break;
						}
						ctr++;	
						found=true;
					}	
				}
			}	
			if((found)&&(ctr!=0))
				System.out.format("The number %d is not unique and is repeated %d times in the array %n",arr[i],ctr);
			else if((!found)&&(ctr==1))
				System.out.format("The number %d is unique %n", arr[i]);
			
		}
	}
}

